﻿using System.Collections.Generic;

namespace MvcPagingExample.Models
{

	public interface IItemListInfo
	{
		int TotalItems { get; }
	}

	public class ItemListViewModel<T> : IItemListInfo
	{
		private IEnumerable<T> items;
		private int totalItems;

		public ItemListViewModel(IEnumerable<T> items, int totalItems)
		{
			this.items = items;
			this.totalItems = totalItems;
		}
		public IEnumerable<T> Items { get {return this.items;} }
		public int TotalItems { get { return this.totalItems; } }
	}
}